home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / LSC213.cpt / DiskDvr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-09-26  |  1.3 KB  |  82 lines  |  [TEXT/KAHL]

  1.  
  2. /*
  3.  *  DiskDvr.h
  4.  *
  5.  *  Copyright (c) 1986, 1987 THINK Technologies, Inc.
  6.  *  These interfaces are based on information copyrighted
  7.  *  by Apple Computer, Inc., 1985, 1986, 1987.
  8.  *
  9.  */
  10.  
  11. #ifndef    _DiskDvr_
  12. #define _DiskDvr_
  13.     
  14. /*  positioning  */
  15. #define    currPos        0        /*  fsAtMark  */
  16. #define    absPos        1        /*  fsFromStart  */
  17. #define    relPos        3        /*  fsFromMark  */
  18.  
  19. typedef    struct DrvSts {
  20.     int                track;
  21.     char            writeProt;
  22.     char            diskInPlace;
  23.     char            installed;
  24.     char            sides;
  25.     struct QElem     *qLink;
  26.     int                qType;
  27.     int                dQDrive;
  28.     int                dQRefNum;
  29.     int                dQFSID;
  30.     char            twoSideFmt;
  31.     char            needsFlush;
  32.     int                diskErrs;
  33. } DrvSts;
  34.  
  35. typedef    struct DrvSts2 {    /*  HD-20  */
  36.     int                track;
  37.     char            writeProt;
  38.     char            diskInPlace;
  39.     char            installed;
  40.     char            sides;
  41.     struct QElem     *qLink;
  42.     int                qType;
  43.     int                dQDrive;
  44.     int                dQRefNum;
  45.     int                dQFSID;
  46.     int                driveSize;
  47.     int                driveS1;
  48.     int                driveType;
  49.     int                driveManf;
  50.     char            driveChar;
  51.     char            driveMisc;
  52. } DrvSts2;
  53.  
  54. /*  result codes  */
  55. #define firstDskErr        (-84)
  56. enum {
  57.     verErr = -84,
  58.     fmt2Err,
  59.     fmt1Err,
  60.     sectNFErr,
  61.     seekErr,
  62.     spdAdjErr,
  63.     twoSideErr,
  64.     initIWMErr,
  65.     tk0BadErr,
  66.     cantStepErr,
  67.     wrUnderrun,
  68.     badDBtSlp,
  69.     badDCksum,
  70.     noDtaMkErr,
  71.     badBtSlpErr,
  72.     badCksmErr,
  73.     dataVerErr,
  74.     noAdrMkErr,
  75.     noNybErr,
  76.     offLinErr,
  77.     noDriveErr
  78. };
  79. #define lastDskErr        (-64)
  80.  
  81.  
  82. #endif _DiskDvr_